home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1994 April
/
1994-04b.d64
/
birthday sim
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
281b
|
12 lines
5 print"[147][144]
10 [143] matching birthdays simulator
20 x[178][187]([171]ti[173]91):[134] b(365):i[178]1:t[178]0:c[178]0
30 x[178][181]([187](1)[172]365[170]1)
35 [153] x,
40 [139] b(x)[178]1 [167] 60
50 b(x)[178]1:i[178]i[170]1:[137] 30
60 t[178]t[170]i:c[178]c[170]1:a[178][181](t[173]c)
70 [153]:[153]"run #"c,"people until match:"i,,"avg people (all runs)"a
80 [129] i[178]1 [164] 365:b(i)[178]0:[130]
90 i[178]1:[137]30